server:
  port: 9082
spring:
  application:
    name: ${cfg.projectName}
  profiles:
    active: dev
  cloud:
    consul:
      enabled: true
      port: ${'$'}{consul.port}
      host: ${'$'}{consul.host}
      discovery:
        enabled: true
        health-check-path: /ping
    swagger:
      enabled: true
      base-package: com.daoshu
  datasource:
    dynamic:
      primary: master #设置默认的数据源或者数据源组,默认值即为master
      strict: false #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候会抛出异常,不启动则使用默认数据源.
      datasource:
        master:
          url: ${'$'}{master.url}
          username: ${'$'}{master.username}
          password: ${'$'}{master.password}
          type: com.alibaba.druid.pool.DruidDataSource
          driver-class-name: ${'$'}{master.driver} # 3.2.0开始支持SPI可省略此配置
        slave_1:
          url: ${'$'}{slave_1.url}
          username: ${'$'}{slave_1.username}
          password: ${'$'}{slave_1.password}
          type: com.alibaba.druid.pool.DruidDataSource
          driver-class-name: ${'$'}{slave_1.driver}
#        slave_2:
#          url: ${'$'}{db.url} # 内置加密,使用请查看详细文档
#          username: ${'$'}{db.username}
#          password: ${'$'}{db.password}
#          type: com.alibaba.druid.pool.DruidDataSource
#          driver-class-name: ${'$'}{db.driver}
#          schema: db/schema.sql # 配置则生效,自动初始化表结构
#          data: db/data.sql # 配置则生效,自动初始化数据
#          continue-on-error: true # 默认true,初始化失败是否继续
#          separator: ";" # sql默认分号分隔符

